﻿<%@ Page Title="" Language="C#" MasterPageFile="~/giaovien/Manager3.master" AutoEventWireup="true"
    CodeFile="TrangDanhSachPhuHuynh.aspx.cs" Inherits="giaovien_TrangDanhSachPhuHuynh" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Danh sách phụ huynh học sinh
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Năm học: </span>
                    <asp:DropDownList ID="drNamHoc" runat="server" Width="120px" CssClass="heighcontrol">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Lớp học: </span>
                    <asp:DropDownList ID="drLopHoc" runat="server" Width="120px" CssClass="heighcontrol"
                        AutoPostBack="True">
                    </asp:DropDownList>
                </div>
                <div>
                    <asp:TabContainer ID="TabContainer1" runat="server" Width="100%" ActiveTabIndex="0">
                        <asp:TabPanel ID="tab1" runat="server" HeaderText="Danh sách phụ huynh">
                            <ContentTemplate>
                                <asp:GridView ID="grvDSPH" runat="server" AutoGenerateColumns="False" Width="100%" PageSize="50"
                                    AllowPaging="True" Height="28px" ShowFooter="True" EnableModelValidation="True">
                                    <Columns>
                                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tên học sinh" SortExpression="MaHS">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMaHS" runat="server" Visible="false" Text='<%#Bind("MaHS") %>'></asp:Label>
                                                <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Họ tên cha" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblHoTenCha" Text='<%# Bind("HoTenCha") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ĐC cha" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblDCCha" Text='<%# Bind("DiaChiCha") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Họ tên mẹ" SortExpression="HoTenMe">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblHoTenMe" Text='<%# Bind("HoTenMe") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ĐC mẹ" SortExpression="DiaChiMe">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblDCMe" Text='<%# Bind("DiaChiMe") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Số điện thoại" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblSDT" Text='<%# Bind("SDT") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Email" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblEmail" Text='<%# Bind("Email") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Sửa TT">
                                            <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgLoiVP" Height="30px" ImageUrl="~/Icon/violation.ico"
                                                    PostBackUrl='' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle BackColor="#9999FF" Height="30px" />
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel ID="tab2" runat="server" HeaderText="Cấp mật khẩu">
                            <ContentTemplate>
                                <asp:GridView runat="server" ID="grvPhuHuynh" AutoGenerateColumns="False" Width="100%" PageSize="50"
                                    AllowPaging="True" Height="28px" ShowFooter="True" EnableModelValidation="True"
                                    OnRowDeleting="grvPhuHuynh_RowDeleting">
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="ckCheck" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tên phụ huynh" SortExpression="MaHS">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTenPH" runat="server" Text='<%#Bind("HoTenCha") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tài khoản" SortExpression="MaHS">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Mật khẩu" SortExpression="DiemTongKet">
                                            <ItemTemplate>
                                                <asp:TextBox runat="server" ID="txtMatKhauPH" Text='<%# Bind("MatKhau") %>'></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:CommandField ShowDeleteButton="True" ButtonType="Image" HeaderText="Xóa MK"
                                            DeleteImageUrl="~/Icon/cancel.ico" DeleteText="Xóa">
                                            <ControlStyle Height="25px"></ControlStyle>
                                        </asp:CommandField>
                                    </Columns>
                                    <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                                </asp:GridView>
                                <div style="margin-left: 100px; padding-bottom: 5px;">
                                    <asp:Button runat="server" ID="btnLuu" Text="Lưu tài khoản" CssClass="button_150" />&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnGuiEmail" Text="Gửi TK qua email" CssClass="button_150" />&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnGuiSMS" Text="Gửi TK qua sms" CssClass="button_150" />
                                </div>
                            </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer>
                </div>
                <%--<div style="text-align:right;margin-top:10px;">
                   
                     <span>
                    <asp:LinkButton runat="server" ID="lbkTheoKy2" CssClass="table" 
                        Text="Bảng điểm theo kỳ" onclick="lbkTheoKy2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbTheoKy2" CssClass="size" 
                        ImageUrl="~/Icon/table(1).ico" onclick="imbTheoKy2_Click"  />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span>
                    <asp:LinkButton runat="server" ID="lbkHanhKiem2" CssClass="table" 
                        Text="Đánh giá hạnh kiểm" onclick="lbkHanhKiem2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbHanhKiem2" CssClass="size" 
                        ImageUrl="~/Icon/table_accept.ico" onclick="imbHanhKiem2_Click" />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span>
                    <asp:LinkButton runat="server" ID="lbkTongHop2" CssClass="table" 
                        Text="Bảng tổng hợp kết quả" onclick="lbkTongHop2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbTongHop2" CssClass="size" 
                        ImageUrl="~/Icon/table_star.ico" onclick="imbTongHop2_Click"  />
                     </span>
                </div>--%>
            </div>
        </div>
    </div>
</asp:Content>
